<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>菜单</title>
        <link href="<?php echo (ADMIN_CSS_URL); ?>bootstrap.css" rel="stylesheet" />
        <link href="<?php echo (ADMIN_CSS_URL); ?>lz-style.css" rel="stylesheet" />
        <script src="<?php echo (ADMIN_JS_URL); ?>jquery.js"></script>
        <script src="<?php echo (ADMIN_JS_URL); ?>jquery.form.js"></script>
        <script src="<?php echo (ADMIN_JS_URL); ?>bootstrap.js"></script>
    </head>
    <body style="background: #99CCCC">
        <?php if(is_array($firstMenuLst)): foreach($firstMenuLst as $key=>$firstrow): ?><div class="div_menu_first">
                <a id="from_<?php echo ($firstrow["menuid"]); ?>" href="#" class="div_menu_link"  data-toggle="collapse" data-target="#to_<?php echo ($firstrow["menuid"]); ?>"><?php echo ($firstrow["menuname"]); ?></a> 
            </div>

            <div id="to_<?php echo ($firstrow["menuid"]); ?>" class="collapse">
                <?php $firstrow_menuid = $firstrow["menuid"]; ?>
                <?php if(is_array($secondMenuLst)): foreach($secondMenuLst as $key=>$secondrow): if($secondrow["supermenuid"] == $firstrow_menuid): ?><div  class="div_menu_sceond ">
                            <a id="from_<?php echo ($secondrow["menuid"]); ?>" href="#" class="div_menu_link" data-toggle="collapse" data-target="#to_<?php echo ($secondrow["menuid"]); ?>"><?php echo ($secondrow["menuname"]); ?></a>
                        </div>
                        <div id ="to_<?php echo ($secondrow["menuid"]); ?>" class="collapse">
                            <?php $secondrow_menuid = $secondrow["menuid"]; ?>
                            <?php if(is_array($thirdMenuLst)): foreach($thirdMenuLst as $key=>$thirdrow): if($thirdrow["supermenuid"] == $secondrow_menuid): ?><div  class="div_menu_third ">
                                        <a href="/ecs/index.php/Admin/<?php echo ($thirdrow["menuhref"]); ?>" class="div_menu_link" target="right"><?php echo ($thirdrow["menuname"]); ?></a>
                                    </div><?php endif; endforeach; endif; ?>   
                        </div><?php endif; endforeach; endif; ?>
            </div><?php endforeach; endif; ?>
    </body>
</html>